<#include "/lib/macro-lib.ftl"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<#include "../inc/commonJs.html">
<script src="../../js/calendar.js"></script>
<script>
<#if ret??>
  alert('${ret}');
</#if>
</script>
<body>
<div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<br>
<table width="98%" class="table_all" align="center" border="0" cellpadding="0"
			cellspacing="0" style="margin-top: 0px">
<form name="frm" method="post" action="reportlist.do">
<tr align="center">
<td class="td_table_1">年度：</td><td class="td_table_2"><@selectRange optName="year2" start=year2-3 end=year2+3 optVal=year2 all=false> class="easyui-combobox"</@selectRange>
<td class="td_table_1">帐户：</td><td class="td_table_2"><@selectUtil optName="account2" optVals=accounts optVal=account2> class="easyui-combobox"</@selectUtil></td>
	<!--开始日期：<input type="text" name="logtime2" value="${logtime2!}" size=10 onclick="calendar(this);">
	截止日期：<input type="text" name="logtime3" value="${logtime3!}" size=10 onclick="calendar(this);">-->
<td class="td_table_1">类型：</td><td class="td_table_2"></td><td class="td_table_2"><@selectUtil optName="type2" optVals=types optVal=type2> class="easyui-combobox"</@selectUtil></td>
<td class="td_table_1">用户：</td><td class="td_table_2"></td><td class="td_table_2"><@selectUtil optName="user2" optVals=users optVal=user2> class="easyui-combobox"</@selectUtil>
</td>
</tr>
</table>
<input type="submit" class="button_70px" value="查询">
<input type="reset" class="button_70px" value="重置">
&nbsp;
<input type="button" class="button_100px" value="增加流水日志"  onclick="window.location='logadd.do';">
</form>
<p>
<b>${year2?c}年度</b>&nbsp;&nbsp;<a href="reportyear.do?year=${year2?c}" title="查看年度收支分布">查看年度收支分布</a>
</p>
<#setting number_format="#.##"/>
<#assign t1=0>
<#assign t2=0>
<#assign t3=0>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table_all">
<tr align="center">
	<td width="60" class="td_list_1">收入</td>
<#list data[0] as d>
	<td width="100" class="td_list_2"><font color="green">#{d; m2}</font></td>
	<#assign t1=t1+d>
</#list>
</tr>
<tr align="center">
	<td class="td_list_1">支出</td>
<#list data[1] as d>
	<td width="100" class="td_list_2"><font color="red">#{d; m2}</font></td>
	<#assign t2=t2+d>
</#list>
</tr>
<tr align="center">
	<td class="td_list_1">差额</td>
<#list data[2] as d>
	<td width="100" class="td_list_2"><font color="blue">#{d; m2}</font></td>
	<#assign t3=t3+d>
</#list>
</tr>
<tr align="center">
	<td class="td_list_1">月份</td>
<#list columnKeys as k>
	<td width="100" class="td_list_2"><a href="reportmonth.do?month=${k}" title="查看当月的收支分布">${k}</a></td>
</#list>
</tr>
</table>
合计：收入（<b>#{t1; m2}</b>）、支出（<b>#{t2; m2}</b>）、差额（<b>#{t3; m2}</b>）
<p align="center">
<img src="../../uploadfile/chart/${reportimage}" width="98%">
</p>
</div>
</body>
</html>